<h1>Listing users</h1>

<table>
  <tr>
    <th>Nome</th>
    <th>Sobrenome</th>
    <th>Cpf</th>
    <th>Login</th>
    <!--th>Password</th-->
    <th>Email</th>
    <th>Telefone1</th>
    <th>Telefone2</th>
  </tr>

<% @users.each do |user| %>
  <tr>
    <td><%=h user.nome %></td>
    <td><%=h user.sobrenome %></td>
    <td><%=h user.cpf %></td>
    <td><%=h user.login %></td>
    <!--td><%=h user.crypted_password %></td-->
    <td><%=h user.email %></td>
    <td><%=h user.telefone1 %></td>
    <td><%=h user.telefone2 %></td>
    <td><%= link_to 'Show', user %></td>
    <td><%= link_to 'Edit', edit_user_path(user) %></td>
    <td><%= link_to 'Destroy', user, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New user', new_user_path %>